package com.mzpai.product.mapper;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.mzpai.mapper.BaseMapper;
import com.mzpai.product.model.StoreProductSupplier;
import com.mzpai.product.vo.StoreProductSupplierDto;

@Repository
public interface StoreProductSupplierMapper extends BaseMapper<StoreProductSupplier>{
	
	
	/**
	 * 根据商品编码查询基础商品
	 * @param map
	 * @return
	 */
	StoreProductSupplier queryByProductCode(String productCode);
	
	
	/**
	 * 根据商品主键查询基础商品
	 * @param map
	 * @return
	 */
	StoreProductSupplier queryByPrimaryId(Integer id);
	

	/**
	 * 同步商品信息
	 * @param productId
	 */
	void syncProduct(Integer productId);
	
	List<StoreProductSupplier> getListNewInit(Map<String,Object> map);
	
	/**
	 * 清洗数据用
	 * @param productId
	 */
	List<StoreProductSupplier> getListProductCodeIsNull();
	
	/**
	 * 统计总数
	 * @param productId
	 */
	Integer countTotal(Map<String,Object> map);
	
	List<StoreProductSupplierDto> getProcuctAndBrandList(Map<String,Object> map);
	
	
	
}